﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DrawAGraph
{
    public partial class Form1 : Form
    {
        private Shape currentShape;
        public Form1()
        {
            InitializeComponent();


        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void Form1_Click(object sender, EventArgs e)
        {
            Refresh();
            Shape shape;
            shape = ShapeFactory.CreateShape(comboBox1.Text, Color.FromName(comboBox2.Text));
            shape.Draw();
        }
    }
}
